#/bin/sh!
ntpdate 0.centos.pool.ntp.org
chkconfig ntpd on
service  ntpd start

packages="yum-plugin-priorities openstack-selinux MySQL-python openstack-utils"
remoutepackages="http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-3.noarch.rpm http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm"

#yum install yum-plugin-priorities -y
#yum install http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-3.noarch.rpm -y
#yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm -y
#yum install openstack-selinux -y
#yum install MySQL-python -y
#yum install openstack-utils -y

yum -y  install $remoutepackages
yum -y update
yum install -y $packages

mv /etc/hosts /etc/hosts.save
cp $PWD/hosts /etc/
#cp /net/192.168.200.254/scratch/scripts/openstack/hosts /etc/
